/**
 * @author: 小红
 * @date: 2025/3/24
 * @Description: 语言
 */
import { useAppStore } from '@/stores/modules/app'
import { loadLocaleMessages } from '@/locales'
// import { bus } from 'wujie'

export async function useChangeLocale(key: any) {
  await loadLocaleMessages(key)
  useAppStore().setLocale(key)
  // bus.$emit('AppMainLocale', key)
}
